/*
 * TextNode.h
 *
 *  Created on: 2010-6-5
 *      Author: Guobc
 */

#ifndef TEXTNODE_H_
#define TEXTNODE_H_

#include <string>
#include "Text.h"

namespace HA {

class TextNode: public HA::Text {
public:

	TextNode();

	TextNode(string text);

	inline void setText(const string& text) {
		mText = text;
	}

	inline string getText() {
		return mText;
	}

	inline string toHTML() {
		return mText;
	}

	inline ASTNode* newInstance() const {
		return new TextNode();
	}

private:
	string mText;
};
}
#endif /* TEXTNODE_H_ */
